package cn.sixmillions.demo01.factory;

import cn.sixmillions.demo01.entity.Clazz;

/**
 * 静态工厂，静态方法创建bean
 */
public class ClazzStaticFactory {
    public static Clazz createOneClazz() {
        System.out.println("静态工厂，静态方法创建bean");
        return new Clazz(1, "一班", "一楼东面，班主任是张三");
    }
}
